package com.yydream.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("sys_administrative_area")
public class SysAdministrativeAreaEntity extends TenantBaseEntity{

    @ApiModelProperty(name = "id")
    @TableId
    private Long id;

    @ApiModelProperty(name = "区号")
    private String code;

    @ApiModelProperty(name = "上级区号")
    private String parentcode;

    @ApiModelProperty(name = "级别, 1 省，2 市，3区县，4 乡镇街道")
    private Integer level;

    @ApiModelProperty(name = "名称")
    private String name;

    @ApiModelProperty(name = "父级区号集合")
    private String parentcodes;

    @ApiModelProperty(name = "省")
    private String province;

    @ApiModelProperty(name = "市")
    private String city;

    @ApiModelProperty(name = "区县")
    private String district;

    @ApiModelProperty(name = "乡镇")
    private String town;

    @ApiModelProperty(name = "拼音")
    private String pinyin;

    @ApiModelProperty(name = "简拼")
    private String jianpin;

    @ApiModelProperty(name = "首字母")
    private String firstchar;

    @ApiModelProperty(name = "电话区号")
    private String tel;

    @ApiModelProperty(name = "邮编")
    private String zip;

    @ApiModelProperty(name = "经度")
    private Double lng;

    @ApiModelProperty(name = "纬度")
    private Double lat;

}